package at.fhooe.engine.visuals;

import java.awt.Graphics2D;


public class TextVisual implements Visual {
	
	private String m_text;
	
	public TextVisual(String text) {
		m_text = text;
	}
	
	public void setText(String text) {
		m_text = text;
	}
	
	public String getText() {
		return m_text;
	}
	
	public void draw(Graphics2D graphics) {
		graphics.drawChars(m_text.toCharArray(), 0, m_text.length(), 0, 0);
	}

}
